import axios from './index';
import { RegisterPayload, LoginPayload } from '../typings/user';

export function validate() {
  return axios.get('/user/validate');
}
export function register(values: RegisterPayload) {
  return axios.post('/user/register', values);
}
export function login(values: LoginPayload) {
  return axios.post('/user/login', values);
}
